#pragma once

typedef enum _PORT_TYPE
{
	ESerial,
	EParaellel,
	EUSB,
	EPORT_TYPE_COUNT
}EPORT_TYPE;

typedef struct _Serial_Port_Info
{
	int nPortIndex;
	int nParity;	// 0: None, 1:EVEN, 2: ODD, 
	int nBoudRate; //1:4800, 2:9600,...6:115200
	int nStopBit;
	int nDataBit;
	int nFlowControl;
}Serial_Port_Info;


typedef struct _DeviceDefinition
{
	CString DeviceName;
	CString DeviceLDN;
	CString DeviceClass;
	EPORT_TYPE ePortType;
	Serial_Port_Info PortSetting;

}DeviceDefinition;

// Message definition
#define WM_INIT_SO										WM_USER + 100
#define WM_UPDATE_ALLDEVS_INFO				WM_USER + 101

// Error Code

